Motion.GetAxisPosition method
Gets the current position from an axis. The position can be set position or actual position.
Namespace: IntervalZero.KINGSTAR.OpcUa.Api
Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0
Syntax
public KsReturn<double> GetAxisPosition(
int Index,
McSource Source
)
Public Function GetAxisPosition(
Index As Integer,
Source As McSource
) As KsReturn(Of Double)
Parameters
Index
Type: int
The index of an axis. Indexes are zero based. Aliases affect this parameter.
Source
Type: McSource
Selects a position value to read.
Return value
Returns a KsError code and a double value.
Remarks
When modulo axis is enabled, the commend, set, and actual positions in McSource will be applied with the modulo value.
Examples
N/A
See also